import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
   
    {
      path: '/',
      name: 'LoginIndex',
      component: () => import('../views/Logins/LoginIndexView.vue')
    },
    {
      path: '/Main',
      name: 'Main',
      component: () => import('../views/MainView.vue'),
      children:[
        {
          path: '/TraceabilityManagements/TraceabilityIndex',
          name: 'TraceabilityIndex',
          component: () => import('../views/TraceabilityManagements/TraceabilityIndexView.vue')
        },
        {
          path: '/TraceabilityManagements/TraceabilityHusbandryDetails',
          name: 'TraceabilityHusbandryDetails',
          component: () => import('../views/TraceabilityManagements/TraceabilityHusbandryDetailsView.vue')
        },
        {
          path: '/TraceabilityManagements/PublicTraceabilityDetails',
          name: 'PublicTraceabilityDetails',
          component: () => import('../views/TraceabilityManagements/PublicTraceabilityDetailsView.vue')
        },
        {
          path: '/TraceabilityManagements/TraceabilityDeepProcessingDetails',
          name: 'TraceabilityDeepProcessingDetails',
          component: () => import('../views/TraceabilityManagements/TraceabilityDeepProcessingDetailsView.vue')
        },
        {
          path: '/TraceabilityManagements/TraceabilitySlaughterDetails',
          name: 'TraceabilitySlaughterDetails',
          component: () => import('../views/TraceabilityManagements/TraceabilitySlaughterDetailsView.vue')
        },
        {
          path: '/LogFilters/LogIndexFilter',
          name: 'LogIndexFilter',
          component: () => import('../views/LogFilters/LogIndexFilterView.vue')
        }
      ]
    },
   
  ]
})

export default router
